Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Saveoptions is a field

saveoptions is a reserved field

Once set to 0 changes to the document will not be saved.

Many times people use it on a cancel button.
Let's say a user opens a document in edit mode, makes changes and then wants to "cancel".
If the user hits the escape button the user is prompted, do you wish to save the changes.

If the developer provides a button for the user labeled "Cancel".. with the following code:
field saveOptions := "0";
@command([fileclosewindow])

The document is closed w/out the prompt. The field is not set to "0" because it is never saved.


From the help:

@Command( [FileCloseWindow] )


Usage

This command executes after all @functions. Use @Command([CloseWindow]) to execute immediately. See the Order of evaluation for formula statements topic for more details.

FileCloseWindow does not close the Notes workspace window.

When using this command on a form in Notes, to prevent the user from being prompted to save any changes, either save the document first, or use the statement FIELD SaveOptions := "0"; before this command to exit without saving.



You can use this command with Web applications, as long as you enable the "Allow Javascript on the Web" setting on the Basics tab of the Database Properties box. Precede this command with @Command([FileSave]) to simulate a Submit button.

Also from the help:




SaveOptions, values to set: 1, 0

Use 1 to save mailed documents. Use 0 so that the document is not saved when mailed. prevent the document from being saved.


Feedback response number WEBBATTHBA created by ~Hal Quetlu on 12/07/2017

saveoptions issue (~Chloe Rekrooni... 7.Dec.17)
. . Saveoptions is a field (~Hal Quetlu 7.Dec.17)
. . . . ok (~Chloe Rekrooni... 8.Dec.17)
. . . . Excellent. I'd only add a couple of... (~Sigmund Umwema... 11.Dec.17)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS